package io.renren.modules.oss.service;


import io.renren.modules.oss.model.FileChunk;
import io.renren.modules.oss.model.FileModel;

import java.util.List;

public interface ChunkUploadService {

    Integer addChunk(FileChunk fileChunk);

    Integer getChunkNumByContentHash(String contentHash);

    Boolean removeChunkRecord(String contentHash);

    Boolean verifyContentHash(Long fileSize, String contentHash);

    List<FileChunk> getChunkListByContentHash(String contentHash);

    Integer addFile(FileModel fileModel);
}
